Added vim as default editor, block/bar switching

+ block/bar switching now enabled with vitality plugin while in tmux
+ set EDITOR variable as vim
This commit is contained in:
Nick Nisi
2012-04-12 23:42:06 -05:00
parent c9768f81fd
commit 231336dc4f
2 changed files with 9 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ export MY_BIN=~/bin
export PATH=$MY_BIN:$PATH
export MY_EDITOR="mvim -v";
export EDITOR="vim"
# export EDITOR='subl -w'
# add ~/.node_libraries to the node path

8
vimrc
View File

@@ -47,6 +47,8 @@ if has("autocmd")
" automatically resize panes on resize
autocmd VimResized * exe "normal! \<c-w>="
"autocmd BufWritePost .vimrc source $MYVIMRC
" save all files on focus lost, ignoring warnings about untitled buffers
autocmd FocusLost * silent! wa
endif
" code folding settings
@@ -84,6 +86,12 @@ set magic " Set magic on, for regex
set showmatch " show matching braces
set mat=2 " how many tenths of a second to blink
" switch to line when editing and block when not
let cursor_to_bar = "\<Esc>]50;CursorShape=1\x7"
let cursor_to_block = "\<Esc>]50;CursorShape=0\x7"
let &t_SI = cursor_to_bar
let &t_EI = cursor_to_block
" error bells
set noerrorbells
set visualbell