Skip to content

Instantly share code, notes, and snippets.

@dword4
Created December 1, 2016 17:27
Show Gist options
  • Save dword4/2ea0eb0c6417643b182916d918972a30 to your computer and use it in GitHub Desktop.
Save dword4/2ea0eb0c6417643b182916d918972a30 to your computer and use it in GitHub Desktop.
set t_Co=256
if has("syntax")
syntax on
endif
set novisualbell
set hlsearch
"colorscheme apprentice
"colorscheme slate
"colorscheme dword2
colorscheme cobalt2
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'majutsushi/tagbar'
Bundle 'scrooloose/nerdtree'
Bundle 'itchyny/lightline'
Bundle 'tpope/vim-surround'
Bundle 'mattn/gist-vim'
Bundle 'mattn/webapi-vim'
Bundle 'gertjanreynaert/cobalt2-vim-theme'
Bundle 'Valloric/YouCompleteMe'
let g:lightline = {
\ 'colorcheme': 'default',
\ }
set laststatus=2
filetype plugin indent on
nmap <F8> :TagbarToggle<CR>
nmap <F9> :NERDTree<CR>
" below commented out as it seems there might be a conflict with ssh
" clients
" " this needs to be tested locally
" " http://vim.wikia.com/wiki/Switch_between_Vim_window_splits_easily
"
" none of these have been used in ages, I can probalby safely remove them
" nmap <A-Up> :wincmd k<CR>
" nmap <A-Down> :wincmd j<CR>
" nmap <A-Left> :wincmd h<CR>
" nmap <A-Right> :wincmd l<CR>
" below is to provide easier movement between tabs
map <C-l> :tabn<CR>
map <C-h> :tabp<CR>
map <C-n> :tabnew<CR>
map <C-x> :tabclose<CR>
" F5 now lets you enter a timestamp, how handy!
nnoremap <F5> "=strftime("%c")<CR>P
nmap <F5> "=strftime("%c")<CR>P
inoremap <F5> <C-R>=strftime("%c")<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment