Advertisement
Guest User

Untitled

a guest
May 26th, 2017
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.78 KB | None | 0 0
  1. let g:BASH_AuthorName = 'Krzysztof Antczak'
  2. let g:BASH_Email = 'k.antczak@livedata.pl'
  3. let g:BASH_Company
  4. = 'Livedata'
  5.  
  6. syntax on
  7.  
  8. set background=dark
  9.  
  10. " Uncomment the following to have Vim jump to the last position when
  11. " reopening a file
  12. if has("autocmd")
  13. au BufReadPost *%2
  14. 0if line("'\"") > 0 && line("'\"") <= line("$")
  15. \| exe "normal g'\"" | endif
  16. endif
  17.  
  18. " Uncomment the following to have Vim load indentation rules a
  19. ccording to the
  20. " detected filetype. Per default Debian Vim only load filetype specific
  21. " plugins.
  22. if has("autocmd")
  23. filetype indent on
  24. endif
  25.  
  26. " The following are commented out as they cau
  27. se vim to behave a lot
  28. " differently from regular Vi. They are highly recommended though.
  29.  
  30. set showcmd " Show (partial) command in status line.
  31. set showmatch " Show matching brackets.
  32.  
  33. set ignorecase " Do case insensitive matching
  34. set smartcase " Do smart case matching
  35. set incsearch " Incremental search
  36. set autowrite " Automatically save before commands like :ne
  37. xt and :make
  38. set hidden " Hide buffers when they are abandoned
  39. set expandtab " convert tabs to spaces
  40. set softtabstop=4 %
  41. 22 tab of length 2
  42. set shiftwidth=4 " indentation tab to 2 spaces
  43. set nowrap " do not wrap lines
  44. set scrolloff=4 " Always show 4 lines above and bellow cursor (
  45. context)
  46. set backspace=2
  47. set ttyfast " smoother changes
  48. set autoindent " always set autoindenting on
  49. set smartindent " smart indent
  50. set cindent
  51. " cindent
  52.  
  53. set fileencodings=utf-8
  54. set encoding=utf-8
  55.  
  56. set viminfo+=!
  57. set history=1000 " history
  58. set linespace=0 " space it out a little more (easier to read)
  59. set rule
  60. r " Always show current positions along the bottom
  61. set mouse=a " use mouse everywhere
  62. set report=0 " tell us when anything is changed via :...
  63. set list listchars=tab:\ \ ,trail:�,eol
  64. :� " mark trailing white space !!!!
  65.  
  66. "set shortmess=atI " shortens messages to avoid 'press a key' prompt
  67.  
  68. set vb " blink instead beep
  69.  
  70. set wildmenu " autocomplete menu -%2
  71. 0works with vim commands, and filesystem
  72. set guioptions-=T
  73. set completeopt-=preview
  74. set gcr=a:blinkon0
  75.  
  76. " Visual Cues {
  77. set matchtime=5 " how many tenths of a second to blink matching brackets%2
  78. 0for
  79. set hlsearch
  80. set incsearch " BUT do highlight as you type you search phrase
  81. set scrolloff=5 " Keep 5 lines (top/bottom) for scope
  82. set sidescrolloff=5 " Keep 5 lines at the size
  83. set
  84. vb " blink instead beep
  85. set statusline=%f%m%r%h%w\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
  86. set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ENCODE=%{
  87. &fenc}]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
  88. set laststatus=2 " always show the status line
  89. "set cmdheight=5
  90. " }
  91.  
  92. " Indent Related {
  93. set nosmartindent " smartindent (
  94. filetype indenting instead)
  95. set autoindent " autoindent (should be overwrote by cindent or filetype indent)
  96. set cindent " do c-style indenting
  97. set softtabstop=4 " unify
  98. set shiftwidth=4 " unify
  99.  
  100. set tabstop=4 " real tabs should be 4, but they will show with set list on
  101. set copyindent " but above all -- follow the conventions laid before us
  102. " }
  103.  
  104. " Text Formatting/Layout {
  105. %
  106. 22set formatoptions=tcrq " See Help (complex)
  107. set shiftround " when at 3 spaces, and I hit > ... go to 4, not 5
  108. set nowrap " do not wrap line
  109. set preserveindent " but above all -
  110. - follow the conventions laid before us
  111. set ignorecase " case insensitive by default
  112. set smartcase " if there are caps, go case-sensitive
  113. set completeopt=menu,longest,preview " improve the way autoc
  114. omplete works
  115. set nocursorcolumn " show the current column
  116. " }
  117.  
  118. " Folding {
  119. set foldenable " Turn on folding
  120. set foldmarker={,} %
  121. 20 " Fold C style code (only use this as default if you use a high foldlevel)
  122. set foldcolumn=4 " Give 1 column for fold markers
  123. "set foldopen-=searc
  124. h " don't open folds when you search into them
  125. "set foldopen-=undo " don't open folds when you undo stuff
  126. set foldmethod=marker " Fold on the marker
  127. set foldlev
  128. el=1000 " Don't autofold anything (but I can still fold manually)
  129. " }
  130.  
  131. " Tab navigation {
  132. :nmap <C-n> :tabnew<CR>:FufFile<CR>
  133. :imap <C-n> <Esc>:tabnew<CR>:FufFile<CR>%0
  134. A
  135. :nmap - :tabprev<CR>
  136. :nmap + :tabnext<CR>
  137. " }
  138.  
  139. au BufNewFile,BufRead *.module set filetype=php
  140. au BufNewFile,BufRead *.test set filetype=php
  141. au BufNewFile,BufRead *.install set filetype=
  142. php
  143. au BufNewFile,BufRead *.inc set filetype=php
  144.  
  145.  
  146. autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
  147. autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
  148. autocmd FileType css set omnifu
  149. nc=csscomplete#CompleteCSS
  150. autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
  151. autocmd FileType php set omnifunc=phpcomplete#CompletePHP
  152. autocmd FileType inc set omnifunc=phpcomplete#CompletePHP
  153.  
  154. set tags=./
  155. tags;/var/www
  156.  
  157. if &diff
  158. set background=dark
  159. colorscheme peaksea
  160. endif
  161.  
  162.  
  163.  
  164. " custom keybinginds (left key press perform the right key commands)
  165.  
  166. " Toggle fold
  167. noremap f za
  168. " Clos
  169. e all folds
  170. noremap F zM
  171. " Open all folds
  172. noremap O zR
  173.  
  174. :set number
  175. :set t_Co=256
  176. "colorscheme wombat256
  177. "colorscheme molokai
  178. colorscheme neverland
  179. :fixdel
  180.  
  181. "#:set t_kb=^?
  182. "#:set s
  183. hortmess=filnxtToOI
  184. "#map! <Ctrl+V><Home> <Ctrl+V><Alt+0>i
  185.  
  186. "#map <C-z> :u<CR> " undo
  187. :set spelllang=pl
  188. ":set spell
  189.  
  190. command Php :!php %
  191. map <F5> :Php<CR>
  192. imap%
  193. 20<F5> <ESC>:Php<CR>
  194.  
  195. " Check php files for syntax errors {
  196. noremap <C-B> :!php -1 %<CR>
  197. " }
  198.  
  199. map <F7> :FufFile<CR>
  200. imap <F7> :FufFile<CR>
  201.  
  202. map <F2> :w<
  203. CR>
  204. imap <F2> <ESC>:w<CR>
  205.  
  206. map <F10> :q<CR>
  207. imap <F10> :q<CR>
  208.  
  209. set wmh=0
  210.  
  211. set nobackup
  212. set nowritebackup
  213. set noswapfile
  214.  
  215. " PHP {
  216.  
  217. let php_sql_query = 1
  218. let php_html
  219. InStrings = 1
  220. let php_baselib = 1
  221. let php_smart_members = 1
  222. let php_alt_properties = 1
  223. let php_highlight_quotes = 1
  224. let php_alt_construct_parents = 1
  225. let php_nested_functions = 1
  226. let php_oldStyle %3
  227. D 0
  228. let php_folding = 2
  229. let php_fold_arrays = 1
  230. let php_fold_heredoc = 1
  231.  
  232.  
  233. " }
  234.  
  235. set cursorline
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement