Browse Source

Terminator: Update NZXT-terminator/set-from-git

- Vim: Column marker, reload vimrc mapping, mapping timeout.
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
f1b9026f96
  1. 12
      .vimrc
  2. 13
      NZXT-terminator
  3. 6
      set-from-git.sh

12
.vimrc

@ -7,6 +7,7 @@ filetype plugin on
syntax on syntax on
set tabstop=4 set tabstop=4
set tw=80 set tw=80
set linebreak
set colorcolumn=80 set colorcolumn=80
set shiftwidth=4 set shiftwidth=4
set autoindent set autoindent
@ -14,6 +15,11 @@ set mouse=c
set clipboard=unnamedplus set clipboard=unnamedplus
set foldmethod=marker set foldmethod=marker
set linespace=5 set linespace=5
" set listchars=tab:\|\
" set list
set cursorcolumn
set cursorline
set timeoutlen=300
" }}} set x=y " " }}} set x=y "
autocmd VimResized * wincmd = autocmd VimResized * wincmd =
@ -31,7 +37,6 @@ call plug#begin('~/.vim/plugged')
Plug 'vim-scripts/L9' Plug 'vim-scripts/L9'
" Plug 'vim-scripts/FuzzyFinder' " Plug 'vim-scripts/FuzzyFinder'
Plug 'whatyouhide/vim-gotham' Plug 'whatyouhide/vim-gotham'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'flazz/vim-colorschemes' Plug 'flazz/vim-colorschemes'
Plug '907th/vim-auto-save' Plug '907th/vim-auto-save'
let g:auto_save = 1 let g:auto_save = 1
@ -72,7 +77,7 @@ map <F4> :wqa<CR>
map <F5> :qa!<CR> map <F5> :qa!<CR>
map <F7> :AutoSaveToggle<CR> map <F7> :AutoSaveToggle<CR>
map <F9> :LLPStartPreview<CR> map <F9> :LLPStartPreview<CR>
set pastetoggle=<F9>
set pastetoggle=<F10>
map <S-Enter> O<ESC> map <S-Enter> O<ESC>
" For splits. " For splits.
@ -86,7 +91,6 @@ nnoremap <C-w> <C-W>|
let mapleader="\<Space>" let mapleader="\<Space>"
nnoremap <leader>e o<ESC> nnoremap <leader>e o<ESC>
nnoremap <leader>f za
nnoremap <leader>ff :set foldmethod=marker<CR> zM nnoremap <leader>ff :set foldmethod=marker<CR> zM
nnoremap <leader>h :set hlsearch! hlsearch?<CR> nnoremap <leader>h :set hlsearch! hlsearch?<CR>
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR> nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
@ -94,8 +98,10 @@ nnoremap <leader>pli :PlugInstall<CR>
nnoremap <leader>plc :PlugClean<CR> nnoremap <leader>plc :PlugClean<CR>
nnoremap <leader>plu :PlugUpdate<CR> nnoremap <leader>plu :PlugUpdate<CR>
nnoremap <leader>r :.,.+s///g<left><left><left><left><left> nnoremap <leader>r :.,.+s///g<left><left><left><left><left>
nnoremap <leader>rv :source $MYVIMRC<CR>
nnoremap <leader>R :%s///g<left><left><left> nnoremap <leader>R :%s///g<left><left><left>
nnoremap <leader>s :set syn=sh<CR> nnoremap <leader>s :set syn=sh<CR>
nnoremap <leader>z za
" }}} Mappings " " }}} Mappings "
" Local Mappings {{{ " " Local Mappings {{{ "

13
NZXT-terminator

@ -11,6 +11,10 @@
go_up = <Primary>k go_up = <Primary>k
new_tab = <Primary>t new_tab = <Primary>t
new_window = <Primary><Shift>n new_window = <Primary><Shift>n
resize_down = <Primary><Shift>j
resize_left = <Primary><Shift>h
resize_right = <Primary><Shift>l
resize_up = <Primary><Shift>k
split_horiz = <Primary><Shift>i split_horiz = <Primary><Shift>i
split_vert = <Primary><Shift>o split_vert = <Primary><Shift>o
[layouts] [layouts]
@ -24,13 +28,20 @@
[plugins] [plugins]
[profiles] [profiles]
[[default]] [[default]]
background_darkness = 0.89
background_image = None background_image = None
background_type = transparent
copy_on_selection = True copy_on_selection = True
cursor_color = "#b9b9b9" cursor_color = "#b9b9b9"
custom_command = env TERM=xterm-256color bash custom_command = env TERM=xterm-256color bash
font = Monospace 8.5
font = Ubuntu Mono 10
foreground_color = "#0077ff" foreground_color = "#0077ff"
palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff" palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"
scrollbar_position = hidden scrollbar_position = hidden
use_custom_command = True use_custom_command = True
use_system_font = False use_system_font = False
[[light]]
background_color = "#fdf6e3"
background_image = None
foreground_color = "#657b83"
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"

6
set-from-git.sh

@ -1,6 +1,5 @@
dot_dir=~/linux-config
# dotfiles # dotfiles
dot_dir=~/linux-config
dotfiles="bashrc gitconfig inputrc vimrc" dotfiles="bashrc gitconfig inputrc vimrc"
cd $dot_dir cd $dot_dir
for dotfile in $dotfiles; do for dotfile in $dotfiles; do
@ -9,10 +8,11 @@ for dotfile in $dotfiles; do
done done
# terminator # terminator
dot_dir=~/linux-config
term_dir=~/.config/terminator term_dir=~/.config/terminator
pc=$(hostname) pc=$(hostname)
rm "$dot_dir"/"$pc"-terminator rm "$dot_dir"/"$pc"-terminator
ln "$term_dir"/config $dot_dir/"$pc"-terminator
cp "$term_dir"/config $dot_dir/"$pc"-terminator
# UltiSnips # UltiSnips
ln -s $dot_dir/UltiSnips ~/.vim ln -s $dot_dir/UltiSnips ~/.vim
Loading…
Cancel
Save