This commit is contained in:
ziro 2020-05-31 09:59:59 +07:00
parent f842638fcb
commit 96b521de89
4 changed files with 19 additions and 11 deletions

View file

@ -13,14 +13,26 @@ let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
"
set encoding=UTF-8
set hls
set number
set ignorecase
set smartcase
" map <C-n> :NERDTreeToggle<CR>
"
" - Mapping + Settings
" Norm but in shortcut
vnoremap . :normal .<CR>
" Map ctrl + u as U
noremap <C-u> U
" Map U as redo (ctrl + r)
noremap U <C-r>
noremap <C-y> "*y
noremap <C-p> "*p
" Yank and Put to/from clipboard/primary
noremap <C-y> "+y
noremap <C-p> "+p
noremap <C-Y> "+y
noremap <C-P> "+p
noremap <C-P> "+P
" NERDComment thing
noremap <C-/> :NERDCommenterToggle
:set mouse=a
" specific type maps --
@ -29,10 +41,6 @@ autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!clear; python3 %'<
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null
" -------------
set number
set ignorecase
set smartcase
" map <C-n> :NERDTreeToggle<CR>
" Sw (sudo w) to save as root
command! -nargs=0 W w !sudo tee % > /dev/null