Skip to content

Instantly share code, notes, and snippets.

@darkman66
Created December 7, 2017 09:54
Show Gist options
  • Save darkman66/b3fb5c6018d71544b1820651ec0407d2 to your computer and use it in GitHub Desktop.
Save darkman66/b3fb5c6018d71544b1820651ec0407d2 to your computer and use it in GitHub Desktop.
set nocp
set nocompatible
set nu
syntax enable
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
set list
set list listchars=
set nowrap
set encoding=utf-8
set backspace=indent,eol,start
"colorscheme solarized
hi CursorColumn cterm=NONE ctermbg=darkblue guibg=darkred guifg=white
set cuc
set cursorline
hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
hi Directory guifg=#ff0000 ctermbg=darkred ctermfg=white guibg=darkred guifg=white
let g:solarized_termcolors=256
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Consolas:h11:cANSI
endif
set g:indentLine_color_gui = '#A4E57E'
else
"set g:indentLine_color_term = 239
endif
set background=dark
"set nowrap
""set list
""set listchars=tab:t.
set clipboard=unnamed
set nu
set incsearch
set ic
set mouse=a
set wrap
"filetype plugin indent on
filetype off
"autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(
set rtp+=~/.vim/bundle/Vundle.vim
"set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
" alternatively, pass a path where Vundle should install bundles
"let path = '~/some/path/here'
"call vundle#rc(path)
" let Vundle manage Vundle, required
Bundle 'gmarik/vundle'
" The following are examples of different formats supported.
" Keep bundle commands between here and filetype plugin indent on.
" scripts on GitHub repos
Bundle 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
"Bundle 'Lokaltog/vim-easymotion'
"Bundle 'tpope/vim-rails.git'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" scripts from http://vim-scripts.org/vim/scripts.html
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'jistr/vim-nerdtree-tabs'
"Bundle 'Yggdroot/indentLine'
Bundle 'scrooloose/nerdtree'
Bundle 'bronson/vim-trailing-whitespace'
Bundle 'Xuyuanp/nerdtree-git-plugin'
Bundle 'Shougo/vimproc.vim'
Bundle 'Shougo/unite.vim'
Bundle 'rking/ag.vim'
call vundle#end()
filetype plugin indent on
"execute pathogen#infect()
"autocmd vimenter * vim-nerdtree-tabs
let g:nerdtree_tabs_open_on_new_tab=1
let g:nerdtree_tabs_open_on_gui_startup=1
let g:nerdtree_tabs_open_on_console_startup = 1
if (exists('+colorcolumn'))
set colorcolumn=120
highlight ColorColumn ctermbg=9
endif
let g:unite_source_history_yank_enable = 1
try
let g:unite_source_rec_async_command='ag --nocolor --nogroup -g ""'
call unite#filters#matcher_default#use(['matcher_fuzzy'])
catch
endtry
" search a file in the filetree
nnoremap <space><space> :split<cr> :<C-u>Unite -start-insert file_rec/async<cr>
" reset not it is <C-l> normally
:nnoremap <space>r <Plug>(unite_restart)
"
"
"let g:NERDChristmasTree=1
"
nnoremap th :tabfirst<CR>
nnoremap tj :tabnext<CR>
nnoremap tk :tabprev<CR>
nnoremap tl :tablast<CR>
nnoremap tt :tabedit<Space>
nnoremap tn :tabnext<Space>
nnoremap tm :tabm<Space>
nnoremap td :tabclose<CR>
" Alternatively use
"nnoremap th :tabnext<CR>
"nnoremap tl :tabprev<CR>
"nnoremap tn :tabnew<CR>
let g:PyLintSigns = 1
let g:PyLintOnWrite = 1
let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0903,R0904,R0913,E201,E202,E501'
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment