aboutsummaryrefslogtreecommitdiff
path: root/files/.vimrc
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2016-02-12 21:55:24 +0500
committerAnton Bobov <abobov@gmail.com>2016-02-12 21:55:24 +0500
commit38d212c131292c911ed40813cd12673d5459763b (patch)
tree3c387bd1eb40bb0897c9e90c7e53388ce998812c /files/.vimrc
parent37d113e29635d73b347a9d785d7a6659722044c5 (diff)
[vim] Config change and new bundle.
Diffstat (limited to 'files/.vimrc')
-rw-r--r--files/.vimrc14
1 files changed, 14 insertions, 0 deletions
diff --git a/files/.vimrc b/files/.vimrc
index 1d6f683..141a0ef 100644
--- a/files/.vimrc
+++ b/files/.vimrc
@@ -89,6 +89,14 @@ set smartindent
set splitright
set splitbelow
+" Tuneup delays when using escape key
+set timeout
+set timeoutlen=1000
+set ttimeout
+set ttimeoutlen=10
+
+
+
" List chars {{{
set list
@@ -186,6 +194,12 @@ vnoremap # :<C-u>call <SID>VSetSearch()<CR>??<CR><C-o>
" }}}
" Autocommands {{{
if has('autocmd')
+ " Cursor line only in current window and not insert mode
+ au WinEnter * set cursorline
+ au WinLeave * set nocursorline
+ au InsertEnter * set nocursorline
+ au InsertLeave * set cursorline
+
" TODO перенести в ftplugin
autocmd FileType tex setlocal spell textwidth=79
autocmd FileType java setlocal omnifunc=javacomplete#Complete