Skip to content

Instantly share code, notes, and snippets.

@nelsonspbr
Created March 4, 2021 21:26
Show Gist options
  • Save nelsonspbr/2f790e480bb41daa4d6e96c380170442 to your computer and use it in GitHub Desktop.
Save nelsonspbr/2f790e480bb41daa4d6e96c380170442 to your computer and use it in GitHub Desktop.
.vimrc
syntax on
set tabstop=4
set softtabstop=4
set expandtab
set number
set showmatch
set incsearch
set hlsearch
set nonumber
set mouse=a
set autoindent
set term=xterm
nnoremap <S-Tab> <<
inoremap <S-Tab> <C-d>
nnoremap <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>
set pastetoggle=<F3>
autocmd FileType make setlocal noexpandtab
set laststatus=2
set statusline=%f\ -\ L=%l/%L\ C=%c
hi StatusLine ctermbg=Gray ctermfg=Black
au BufRead,BufNewFile *.r set filetype=c
nnoremap <silent> <F4> :nohl<CR><C-l>
command WQ wq
command Wq wq
command W w
command Q q
highlight Comment ctermfg=DarkGray
set nobackup nowritebackup
"execute pathogen#infect()
inoremap <special> <F2> <c-r>=strftime('(%H:%M) ')<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment