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:
@@ -8,6 +8,7 @@ export MY_BIN=~/bin
|
|||||||
export PATH=$MY_BIN:$PATH
|
export PATH=$MY_BIN:$PATH
|
||||||
|
|
||||||
export MY_EDITOR="mvim -v";
|
export MY_EDITOR="mvim -v";
|
||||||
|
export EDITOR="vim"
|
||||||
|
|
||||||
# export EDITOR='subl -w'
|
# export EDITOR='subl -w'
|
||||||
# add ~/.node_libraries to the node path
|
# add ~/.node_libraries to the node path
|
||||||
|
|||||||
8
vimrc
8
vimrc
@@ -47,6 +47,8 @@ if has("autocmd")
|
|||||||
" automatically resize panes on resize
|
" automatically resize panes on resize
|
||||||
autocmd VimResized * exe "normal! \<c-w>="
|
autocmd VimResized * exe "normal! \<c-w>="
|
||||||
"autocmd BufWritePost .vimrc source $MYVIMRC
|
"autocmd BufWritePost .vimrc source $MYVIMRC
|
||||||
|
" save all files on focus lost, ignoring warnings about untitled buffers
|
||||||
|
autocmd FocusLost * silent! wa
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" code folding settings
|
" code folding settings
|
||||||
@@ -84,6 +86,12 @@ set magic " Set magic on, for regex
|
|||||||
set showmatch " show matching braces
|
set showmatch " show matching braces
|
||||||
set mat=2 " how many tenths of a second to blink
|
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
|
" error bells
|
||||||
set noerrorbells
|
set noerrorbells
|
||||||
set visualbell
|
set visualbell
|
||||||
|
|||||||
Reference in New Issue
Block a user