new (better?) vimrc

master
Arne Schauf 10 years ago
parent e0ed427a4f
commit 7bb61e4e69
  1. 2
      tmux.server.conf
  2. 61
      vimrc
  3. 9
      zshrc.local

@ -32,7 +32,7 @@ bind -r h swap-window -t -1
bind -r l swap-window -t +1
# fixes redraw bugs
set -g default-terminal screen-256color
# set -g default-terminal screen-256color
# splitting
unbind %

61
vimrc

@ -77,13 +77,14 @@ nnoremap <silent> <F8> :let notabs=!notabs<Bar>:if notabs<Bar>:tabo<Bar>:else<Ba
nnoremap <silent><Tab> :bn<Cr>
nnoremap <silent><S-Tab> :bp<Cr>
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
" save with sudo
cmap w!! w !sudo tee %
" never open first grep/ack hit
cmap ack Ack!
cmap grep grep!
" Setting up Vundle - the vim plugin bundler
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
@ -105,41 +106,45 @@ if iCanHazVundle == 0
endif
Bundle 'myusuf3/numbers.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/ctrlp.vim'
Bundle 'scrooloose/nerdtree'
nnoremap <silent><leader>f :NERDTreeToggle<Cr>
let NERDTreeShowBookmarks=1
nnoremap <silent><C-n> :NERDTreeToggle<Cr>
let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.git', '\.hg', '\.svn', '\.bzr']
let NERDTreeChDirMode=0
let NERDTreeQuitOnOpen=1
let NERDTreeMouseMode=2
let NERDTreeShowHidden=1
let NERDTreeKeepTreeInNewTab=1
Bundle 'tomtom/tcomment_vim'
Bundle 'vim-scripts/taglist.vim'
noremap <silent><leader>t :TlistToggle<Cr>
noremap <silent><C-T> :TlistToggle<Cr>
let Tlist_Use_Right_Window=1
let Tlist_GainFocus_On_ToggleOpen = 1
Bundle 'saltstack/salt-vim'
au BufRead,BufNewFile *.sls set filetype=sls
Bundle 'bling/vim-airline'
let g:airline#extensions#tabline#enabled = 1
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline#extensions#tabline#fnamecollapse = 0
let g:airline_exclude_preview=1
Bundle 'goldfeld/vim-seek'
let g:seek_subst_disable = 1
let g:seek_enable_jumps = 1
let g:seek_enable_jumps_in_diff = 1
Bundle 'davidhalter/jedi-vim'
let g:jedi#goto_assignments_command = ""
let g:jedi#use_tabs_not_buffers = 0
let g:jedi#popup_on_dot = 1
Bundle 'airblade/vim-gitgutter'
let g:gitgutter_enabled = 0
noremap <silent><leader>g :GitGutterToggle<Cr>
set laststatus=2
Bundle 'bling/vim-bufferline'
" Bundle 'davidhalter/jedi-vim'
" let g:jedi#use_tabs_not_buffers = 0
Bundle 'ivyl/vim-bling'
Bundle 'mileszs/ack.vim'
au BufRead,BufNewFile *.sls set filetype=sls
" Bundle 'jmcantrell/vim-virtualenv'
Bundle 'ervandew/supertab'
Bundle 'rstacruz/sparkup'
" Bundle 'scrooloose/syntastic'
" Bundle 'vim-scripts/indentpython.vim'
Bundle 'klen/python-mode'
let g:pymode_folding = 0
Bundle 'altercation/vim-colors-solarized'
set background=dark
colorscheme solarized

@ -23,8 +23,13 @@ if [ -e "/home/asmaps/.rvm/scripts/rvm" ]; then
fi
# autostart tmux
if which tmux 2>&1 >/dev/null; then
test -z "$TMUX" && (tmux attach || tmux new-session)
if [ "$TMUX" = "" ]; then
export TERM=xterm-256color
if which tmux 2>&1 >/dev/null; then
tmux attach || tmux new-session
fi
else
export TERM=screen-256color
fi
if which xset 2>&1 >/dev/null; then

Loading…
Cancel
Save