Guest User

Untitled

a guest
Dec 30th, 2013
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.56 KB | None | 0 0
  1. syntax enable
  2.  
  3. set tabstop=4
  4. set shiftwidth=4
  5. set softtabstop=4
  6. set expandtab
  7.  
  8. set autoindent
  9. set smartindent
  10.  
  11. set hlsearch
  12. set incsearch
  13. set ignorecase
  14. set smartcase
  15.  
  16. set number
  17.  
  18. set foldmethod=marker
  19.  
  20. set modeline
  21.  
  22. set titlestring=%F
  23. set laststatus=2
  24.  
  25. set lmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯЖ;ABCDEFGHIJKLMNOPQRSTUVWXYZ:,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz
  26. nnoremap j gj
  27. nnoremap k gk
  28. nnoremap <down> gj
  29. nnoremap <up> gk
  30. nnoremap 0 g0
  31. nnoremap $ g$
  32. nnoremap ^ g^
  33.  
  34. set mouse=a
  35. if &term=~'xterm'
  36.     set ttymouse=xterm2
  37. endif
  38. map <ScrollWheelDown> <c-d>
  39. map <ScrollWheelUp> <c-u>
  40.  
  41. au BufRead,BufNewFile *.hs map <buffer> <F1> :Hoogle
  42. au BufRead,BufNewFile *.m,*.oct setf octave
  43. au BufRead,BufNewFile *.f setf forth
  44. au BufRead,BufNewFile *.dats setf ats
  45. au BufRead,BufNewFile *.agda setf agda
  46. au BufRead,BufNewFile *.chpl set syntax=c
  47.  
  48. set rtp+=~/.vim/bundle/neobundle.vim/
  49. call neobundle#rc(expand('~/.vim/bundle'))
  50.  
  51. NeoBundleFetch 'Shougo/neobundle.vim'
  52.  
  53. NeoBundle 'Shougo/vimproc', {'build': {'unix': 'make -f make_unix.mak'}}
  54. NeoBundle 'plasticboy/vim-markdown'
  55. NeoBundle 'bitbucket:0x2493/vim-syntax.git'
  56. NeoBundle 'Valloric/YouCompleteMe', {'build': {'unix': './install.sh --clang-completer'}}
  57. NeoBundle 'scrooloose/syntastic'
  58. NeoBundle 'eagletmt/ghcmod-vim'
  59. NeoBundle 'ujihisa/neco-ghc'
  60. NeoBundle 'altercation/vim-colors-solarized'
  61. NeoBundle 'tpope/vim-fugitive'
  62. NeoBundle 'Twinside/vim-hoogle'
  63. NeoBundle 'itchyny/lightline.vim'
  64.  
  65. filetype plugin indent on
  66.  
  67. let g:lightline = {}
  68.  
  69. let g:lightline.colorscheme = 'solarized16'
  70.  
  71. let g:lightline.active = {
  72.     \ 'left': [
  73.     \     [ 'mode', 'paste' ],
  74.     \     [ 'fugitive', 'readonly', 'filename', 'modified' ]
  75.     \ ],
  76.     \ 'right': [
  77.     \     [ 'lineinfo' ],
  78.     \     [ 'percent' ],
  79.     \     [ 'fileformat', 'fileencoding', 'filetype' ]
  80.     \ ]
  81.     \ }
  82.  
  83. let g:lightline.inactive = {
  84.     \ 'left': [
  85.     \     [ 'filename' ],
  86.     \ ],
  87.     \ 'right': [
  88.     \     [ 'lineinfo' ],
  89.     \ ],
  90.     \}
  91.  
  92. let g:lightline.component_function = {
  93.     \ 'fugitive': 'MyFugitive',
  94.     \ }
  95.  
  96. function! MyFugitive()
  97.     return exists('*fugitive#head') ? fugitive#head() : ''
  98. endfunction
  99.  
  100. let g:ycm_confirm_extra_conf=0
  101. "let g:ycm_global_ycm_extra_conf='~/.vim/ycm_extra_conf.py'
  102.  
  103. let g:vim_markdown_folding_disabled=1
  104.  
  105. let g:necoghc_enable_detailed_browse=1
  106.  
  107. let hs_highlight_debug=1
  108. let hs_highlight_delimiters=1
  109.  
  110. if &term=="xterm"
  111.     set t_Co=16
  112.     set background=dark
  113.     colorscheme solarized
  114. endif
Advertisement
Add Comment
Please, Sign In to add comment