Done some optimizations to Windows support
This commit is contained in:
parent
1315d5054e
commit
f4341b9454
2 changed files with 9 additions and 14 deletions
|
@ -37,13 +37,8 @@ endif
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Fast editing and reloading of vimrc configs
|
" => Fast editing and reloading of vimrc configs
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
if has("win16") || has("win32")
|
|
||||||
map <leader>e :e! ~/_vim_runtime/my_configs.vim<cr>
|
|
||||||
autocmd! bufwritepost vimrc source ~/_vim_runtime/my_configs.vim
|
|
||||||
else
|
|
||||||
map <leader>e :e! ~/.vim_runtime/my_configs.vim<cr>
|
map <leader>e :e! ~/.vim_runtime/my_configs.vim<cr>
|
||||||
autocmd! bufwritepost vimrc source ~/.vim_runtime/my_configs.vim
|
autocmd! bufwritepost vimrc source ~/.vim_runtime/my_configs.vim
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -51,12 +46,7 @@ endif
|
||||||
" means that you can undo even when you close a buffer/VIM
|
" means that you can undo even when you close a buffer/VIM
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
try
|
try
|
||||||
if has("win16") || has("win32")
|
|
||||||
set undodir=~/_vim_runtime/temp_dirs/undodir
|
|
||||||
else
|
|
||||||
set undodir=~/.vim_runtime/temp_dirs/undodir
|
set undodir=~/.vim_runtime/temp_dirs/undodir
|
||||||
endif
|
|
||||||
|
|
||||||
set undofile
|
set undofile
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
|
@ -83,6 +73,11 @@ cnoremap <C-K> <C-U>
|
||||||
cnoremap <C-P> <Up>
|
cnoremap <C-P> <Up>
|
||||||
cnoremap <C-N> <Down>
|
cnoremap <C-N> <Down>
|
||||||
|
|
||||||
|
" Map ½ to something useful
|
||||||
|
map ½ $
|
||||||
|
cmap ½ $
|
||||||
|
imap ½ $
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Parenthesis/bracket
|
" => Parenthesis/bracket
|
||||||
|
|
|
@ -35,7 +35,7 @@ map <leader>f :MRU<CR>
|
||||||
" => YankRing
|
" => YankRing
|
||||||
""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""
|
||||||
if has("win16") || has("win32")
|
if has("win16") || has("win32")
|
||||||
let g:yankring_history_dir = 'C:\Windows\temp\yank_vim_dir'
|
" Don't do anything
|
||||||
else
|
else
|
||||||
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/'
|
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/'
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue