mirror of
https://github.com/fergalmoran/vimfiles.git
synced 2025-12-22 09:30:07 +00:00
Added SOA plugin
This commit is contained in:
15
.vimrc
15
.vimrc
@@ -27,8 +27,11 @@ set nowritebackup
|
||||
set noswapfile
|
||||
set mouse=a
|
||||
|
||||
set colorcolumn=121
|
||||
|
||||
|
||||
" stop hiding fucking quotes
|
||||
set conceallevel=0
|
||||
set conceallevel=3
|
||||
|
||||
let mapleader=","
|
||||
" unhighlight search on pressing return
|
||||
@@ -97,17 +100,18 @@ Plugin 'ap/vim-buftabline'
|
||||
Plugin 'elzr/vim-json'
|
||||
Plugin 'morhetz/gruvbox'
|
||||
|
||||
Plugin 'ryanoasis/vim-devicons'
|
||||
if system("uname -m") != "armv7l\n"
|
||||
Plugin 'Valloric/YouCompleteMe'
|
||||
Plugin 'marijnh/tern_for_vim'
|
||||
Plugin 'OmniSharp/omnisharp-vim'
|
||||
Plugin 'OrangeT/vim-csharp'
|
||||
endif
|
||||
Plugin 'ryanoasis/vim-devicons'
|
||||
" step 2: font configuration
|
||||
" " These are the basic settings to get the font to work (required):
|
||||
" set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Nerd\ Font\ Complete\ 12
|
||||
" set guifont=FuraMono-Medium\ Powerline\ 12
|
||||
set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Nerd\ Font\ Complete\ 12
|
||||
set guifont=Fira\ Code\ Medium\ for\ Powerline\ Plus\ Nerd\ File\ Types\ Medium\ 12
|
||||
|
||||
set encoding=utf-8
|
||||
" " required if using https://github.com/bling/vim-airline
|
||||
let g:airline_powerline_fonts=1
|
||||
@@ -213,6 +217,9 @@ set background=dark
|
||||
syntax enable
|
||||
filetype plugin indent on
|
||||
|
||||
"pyflake settings
|
||||
let g:flake8_show_quickfix=0
|
||||
|
||||
"Added by android-vim:
|
||||
set tags+=/home/fergalm/.vim/tags
|
||||
autocmd Filetype java setlocal omnifunc=javacomplete#Complete
|
||||
|
||||
12
plugin/named.vim
Normal file
12
plugin/named.vim
Normal file
@@ -0,0 +1,12 @@
|
||||
" Inspired by http://www.debian-administration.org/article/381/Updating_bind_serial_numbers_automatically
|
||||
|
||||
function UPDSERIAL(date, num)
|
||||
if (strftime("%Y%m%d") == a:date)
|
||||
return a:date . a:num+1
|
||||
endif
|
||||
return strftime("%Y%m%d") . '01'
|
||||
endfunction
|
||||
|
||||
command Soa :%s/\(2[0-9]\{7}\)\([0-9]\{2}\)\(\s*;\s*serial\s*\)/\=UPDSERIAL(submatch(1),submatch(2)) . submatch(3)/g
|
||||
|
||||
autocmd BufNewFile,BufRead /etc/bind/primary/* Soa
|
||||
Reference in New Issue
Block a user