Skip to content

Instantly share code, notes, and snippets.

@Falconerd
Last active September 23, 2015 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Falconerd/030a71c49ca3362a8246 to your computer and use it in GitHub Desktop.
Save Falconerd/030a71c49ca3362a8246 to your computer and use it in GitHub Desktop.
execute pathogen#infect()
filetype plugin indent on
set colorcolumn=80
set cursorcolumn
set ruler
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set expandtab
set relativenumber
" Scheme
syntax on
colorscheme wasabi256
" Airline
set laststatus=2
let g:airline_powerline_fonts=1
" key mappings
nnoremap <C-t> :tabnew<CR>
nnoremap <C-l> :tabnext<CR>
nnoremap <C-h> :tabprevious<CR>
nnoremap <A-j> :m .+1<CR>==
nnoremap <A-k> :m .-2<CR>==
inoremap <A-j> <Esc>:m .+1<CR>==gi
inoremap <A-k> <Esc>:m .-2<CR>==gi
vnoremap <A-j> :m '>+1<CR>gv=gv
vnoremap <A-k> :m '<-2<CR>gv=gv
" Remove trailing whitespace
function! TrimWhiteSpace()
%s/\s\+$//e
endfunction
autocmd FileWritePre * :call TrimWhiteSpace()
autocmd FileAppendPre * :call TrimWhiteSpace()
autocmd FilterWritePre * :call TrimWhiteSpace()
autocmd BufWritePre * :call TrimWhiteSpace()
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment