Last active
March 23, 2020 12:57
-
-
Save wandersonwhcr/552208a48a0749822f2e98bfd3005ade to your computer and use it in GitHub Desktop.
Vim RC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" colors | |
syntax on | |
colorscheme wombat256mod | |
" mouse | |
set mouse=a | |
" search | |
set incsearch hlsearch ignorecase | |
" spaces | |
set list listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< | |
" lines | |
set number | |
" tabulation | |
set tabstop=4 expandtab | |
set shiftwidth=4 smartindent softtabstop=4 | |
" wrap | |
set nowrap textwidth=0 colorcolumn=+1 | |
highlight Normal ctermbg=none | |
highlight NonText ctermbg=none | |
highlight ColorColumn ctermbg=Black | |
" indent | |
vnoremap > ><CR>gv | |
vnoremap < <<CR>gv | |
" filetype | |
filetype plugin on | |
" autocmd | |
autocmd Filetype gitcommit set textwidth=72 | |
autocmd BufNewFile,BufRead *.md set textwidth=80 | |
autocmd BufNewFile,BufRead *.php set wrap textwidth=120 | |
autocmd BufNewFile,BufRead *.tex set wrap textwidth=80 | |
autocmd BufNewFile,BufRead *.cls set wrap textwidth=80 | |
autocmd BufNewFile,BufRead Makefile set noet | |
" plugin | |
source ~/.vim/plugin/matchit.vim | |
" disable default navigation keys | |
nnoremap <Left> :echo "Left Disabled"<CR> | |
vnoremap <Left> :<C-u>echo "Left Disabled"<CR> | |
inoremap <Left> <C-o>:echo "Left Disabled"<CR> | |
nnoremap <Right> :echo "Right Disabled"<CR> | |
vnoremap <Right> :<C-u>echo "Right Disabled"<CR> | |
inoremap <Right> <C-o>:echo "Right Disabled"<CR> | |
nnoremap <Up> :echo "Up Disabled"<CR> | |
vnoremap <Up> :<C-u>echo "Up Disabled"<CR> | |
inoremap <Up> <C-o>:echo "Up Disabled"<CR> | |
nnoremap <Down> :echo "Down Disabled"<CR> | |
vnoremap <Down> :<C-u>echo "Down Disabled"<CR> | |
inoremap <Down> <C-o>:echo "Down Disabled"<CR> | |
nnoremap <PageUp> :echo "PageUp Disabled"<CR> | |
vnoremap <PageUp> :<C-u>echo "PageUp Disabled"<CR> | |
inoremap <PageUp> <C-o>:echo "PageUp Disabled"<CR> | |
nnoremap <PageDown> :echo "PageDown Disabled"<CR> | |
vnoremap <PageDown> :<C-u>echo "PageDown Disabled"<CR> | |
inoremap <PageDown> <C-o>:echo "PageDown Disabled"<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment