Browse Source

Set vim line width, LaTex preview

Merge from laptop.
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
6f6662a320
  1. 21
      dotfiles/.bash_aliases
  2. 4
      dotfiles/.vimrc
  3. 3
      dotfiles/termConfig

21
dotfiles/.bash_aliases

@ -1,10 +1,10 @@
in_lab=false in_lab=false
cdSchool="c ~/Documents/School";
cd_school="c ~/Documents/School";
if [ -d "/h/u3/c7/" ]; then if [ -d "/h/u3/c7/" ]; then
TERM=xterm-256color TERM=xterm-256color
xmodmap -e "clear Lock" xmodmap -e "clear Lock"
in_lab=true in_lab=true
cdSchool="c ~";
cd_school="c ~";
fi fi
# system # system
@ -59,17 +59,18 @@ else
fi fi
# school # school
alias sch="$cdSchool"
alias 136="$cdSchool/136"
alias mt="ok ~/Documents/School/136/calc-textbook.pdf"
alias psy="$cdSchool/psy"
alias sch="$cd_school"
alias 136="$cd_school/136"
alias pr2="c \"$cd_school\"/136/par/1"
alias mt="ok \"$cd_school\"/136/calc-textbook.pdf"
alias psy="$cd_school/psy"
# 209 # 209
alias ll="ls -l" alias ll="ls -l"
alias 209="$cdSchool/209"
alias 9r="$cdSchool/209/mokkar"
alias l3="$cdSchool/209/mokkar/lab3"
alias a1="$cdSchool/209/mokkar/a1"
alias 209="$cd_school/209"
alias 9r="$cd_school/209/mokkar"
alias l3="$cd_school/209/mokkar/lab3"
alias a1="$cd_school/209/mokkar/a1"
gcc9() { gcc9() {
gcc -Wall -std=gnu99 -g -o "${1%.*}.out" "$1" gcc -Wall -std=gnu99 -g -o "${1%.*}.out" "$1"
} }

4
dotfiles/.vimrc

@ -4,6 +4,8 @@ set background=dark
filetype plugin on filetype plugin on
syntax on syntax on
set tabstop=4 set tabstop=4
set tw=80
set colorcolumn=80
set shiftwidth=4 set shiftwidth=4
set autoindent set autoindent
set mouse=c set mouse=c
@ -29,6 +31,7 @@ Plug 'nathanaelkane/vim-indent-guides'
Plug 'flazz/vim-colorschemes' Plug 'flazz/vim-colorschemes'
Plug 'felixhummel/setcolors.vim' Plug 'felixhummel/setcolors.vim'
Plug '907th/vim-auto-save' Plug '907th/vim-auto-save'
Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
" Plug 'artur-shaik/vim-javacomplete2' " Plug 'artur-shaik/vim-javacomplete2'
" autocmd FileType java setlocal omnifunc=javacomplete#Complete " autocmd FileType java setlocal omnifunc=javacomplete#Complete
@ -39,6 +42,7 @@ colorscheme gotham256
map <F3> :wa<CR> map <F3> :wa<CR>
map <F4> :wqa<CR> map <F4> :wqa<CR>
map <F5> :qa!<CR> map <F5> :qa!<CR>
map <F6> :LLPStartPreview<CR>
map <F7> :AutoSaveToggle<CR> map <F7> :AutoSaveToggle<CR>
map <F10> :PlugInstall<CR> map <F10> :PlugInstall<CR>
map <C-F1> :.,$s/:\(\w\)/: \1/g<CR> map <C-F1> :.,$s/:\(\w\)/: \1/g<CR>

3
dotfiles/termConfig

@ -1,6 +1,5 @@
[global_config] [global_config]
inactive_color_offset = 1.0 inactive_color_offset = 1.0
suppress_multiple_term_dialog = True
title_font = Noto Sans 10 title_font = Noto Sans 10
title_transmit_bg_color = "#3d3d3d" title_transmit_bg_color = "#3d3d3d"
[keybindings] [keybindings]
@ -28,7 +27,7 @@
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 13
font = Monospace 8.5
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

Loading…
Cancel
Save