Compare commits

29 Commits

Author SHA1 Message Date
f3b22e30a5 Add keyboard shortcuts for toggle autoformat 2023-06-22 19:19:36 +02:00
fe63440180 Correct filetype to actual name instead of extension. 2023-06-18 12:29:48 +02:00
2f24adc145 Fix filetype for md files 2023-06-18 12:27:58 +02:00
1b6bf482a7 Disable conceal mode in vim-pencil 2023-06-17 23:37:20 +02:00
3a2e42c76e Installed vim-pencil for tex and markdown 2023-06-17 23:18:58 +02:00
42e1e25855 Reconfigure macro handling to free the ` sign 2023-06-17 23:04:07 +02:00
961283e76a Remove the enquote stuff from latex 2023-06-16 23:09:46 +02:00
24344bb091 Add changes in tex edit 2023-05-13 06:59:02 +02:00
b601a9c6c1 Add csquotes support 2023-05-01 23:15:56 +02:00
7b642a9d88 Change colourscheme 2023-04-24 20:49:51 +02:00
2a5f132336 Remove stuff 2023-03-16 19:45:52 +01:00
52141e2938 Update plugins 2023-03-16 19:45:05 +01:00
ac660cfd00 Enable treesitter 2023-03-14 21:12:46 +01:00
00d748b98b Replace nerdrtree with neotree 2023-03-12 11:43:35 +01:00
a1d47f4968 disable auto-folding in vim-latex 2023-03-12 10:38:26 +01:00
e02b9c4e66 Add gitgutter pluguin 2023-03-12 00:36:26 +01:00
66f4a42d3d Installed new helix like colorscheme 2023-03-12 00:17:03 +01:00
05517af217 Clean up plugins 2023-03-11 23:57:13 +01:00
39eb96ac27 Remove lilipond support 2022-07-24 00:51:43 +02:00
0a74d8e3e4 Resize gui font to 11pt 2022-07-19 22:26:46 +02:00
52fe86f975 Changed colourtheme 2022-06-27 23:22:18 +02:00
5f3cead913 Changed colorscheme 2022-06-27 23:00:21 +02:00
09b354f7bb Change the colourscheme 2022-06-27 00:44:54 +02:00
78b48fa27f Added support for lilypond 2022-06-15 09:03:15 +02:00
92fc047116 added new colorscheme 2022-05-29 15:09:57 +02:00
c6e7682261 Change the timestamp regex to eat the entire line, so it matches european time zones 2022-05-16 22:58:20 +02:00
83b55710a4 change colorscheme 2022-05-04 11:46:14 +02:00
ac00a7d4c0 Change colorscheme and add ESC to close terminal 2022-04-03 09:58:11 +02:00
0fff71e686 Change colourscheme to blayu 2022-02-04 15:43:15 +01:00
9 changed files with 53 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
let s:fontsize = 10
function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount
:execute "GuiFont! Source\ Code\ Pro:h" . s:fontsize
:execute "GuiFont! Hack:h" . s:fontsize
endfunction
noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
@@ -17,6 +17,6 @@ noremap <kMinus> :call AdjustFontSize(-1)<CR>
inoremap <C-kPlus> <Esc>:call AdjustFontSize(1)<CR>a
inoremap <C-kMinus> <Esc>:call AdjustFontSize(-1)<CR>a
GuiFont! Source\ Code\ Pro:h10
GuiFont! Hack:h11
set mouse=a

View File

@@ -1,5 +1,4 @@
set background=dark
set termguicolors
set t_Co=256
let ayucolor='mirage'
colorscheme darkblue
colorscheme catppuccin-mocha

View File

@@ -37,8 +37,8 @@ set ignorecase
set smartcase
"Informative statusline
set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%02l:%02v\ (%p%%)\ %L\ Lines]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]
set laststatus=2
"set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%02l:%02v\ (%p%%)\ %L\ Lines]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]
"set laststatus=2
" Beautify the look and feel
syntax on
@@ -69,7 +69,7 @@ source ~/.config/nvim/wiki.vim
source ~/.config/nvim/rainbow.vim
source ~/.config/nvim/neomake.vim
source ~/.config/nvim/keymap.vim
source ~/.config/nvim/timestamp.vim
" source ~/.config/nvim/timestamp.vim
source ~/.config/nvim/html.vim
source ~/.config/nvim/vim-lsp.vim
source ~/.config/nvim/python.vim

View File

@@ -4,8 +4,8 @@
noremap <F8> :bnext <CR>
noremap <S-F8> :bprevious <CR>
" Define a shortcut to turn on NERDTree
map <C-n> :NERDTreeToggle <CR>
" Define a shortcut to toggle the Neotree
map <C-n> :NeoTreeShowToggle <CR>
" Copy to clipboard with Ctrl+C when in visual mode
vnoremap <C-c> "+y
@@ -28,3 +28,11 @@ nmap <silent> <C-j> <Plug>(LspNextDiagnostic)
" Map vim-grammarous to <F6>
nmap <F6> :GrammarousCheck <CR>
" Map the esc key to close a terminal
tnoremap <ESC> <C-\><C-n>:bd!<CR>
" Map a key to toggle vim-pencil's auto formatting
noremap <silent> <F12> :<C-u>PFormatToggle<cr>
inoremap <silent> <F12> <C-o>:PFormatToggle<cr>

View File

@@ -10,11 +10,22 @@ function! SetServerName()
call system(cmd)
endfunction
" Disable automatic folding in LaTeX
let Tex_FoldedSections=""
let Tex_FoldedEnvironments=""
let Tex_FoldedMisc=""
" Change the leading character for shortcuts, to free the '`' for UK-style
" quotes.
let Tex_Leader="~"
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
set iskeyword+=:
autocmd BufRead *.tex set tw=100
let g:pencil#textwidth=100
let g:pencil#conceallevel=0
autocmd BufRead *.tex set spell
autocmd BufRead,BufEnter *.tex nnoremap <F9> :w <CR> :!/usr/bin/waf configure build <CR>
autocmd BufRead,BufEnter *.tex let b:AutoPairs = {'(':')', '[':']', '{':'}'}
autocmd FileType tex call SetServerName()
autocmd FileType tex call pencil#init({'wrap': 'hard', 'autoformat': 1})

6
lilypond.vim Normal file
View File

@@ -0,0 +1,6 @@
highlight Keyword cterm=bold ctermfg=yellow
highlight Tag ctermfg=blue
highlight Label ctermfg=lightyellow
highlight StorageClass cterm=bold ctermfg=lightgreen
highlight SpecialComment ctermfg=lightcyan
highlight PreCondit ctermfg=cyan

View File

@@ -1,5 +1,7 @@
" Settings for markdown
set grepprg=grep\ -nH\ $*
autocmd BufRead *.md set tw=80
let g:pencil#textwidth=80
let g:pencil#conceallevel=0
autocmd BufRead *.md set spell
autocmd FileType markdown call pencil#init({'wrap': 'hard', 'autoformat': 1})

View File

@@ -1,21 +1,26 @@
" Specify a directory for plugins
call plug#begin(stdpath('data') . '/plugged')
" Colourthemes
Plug 'kyoz/purify', { 'rtp': 'vim' }
Plug 'joshdick/onedark.vim'
Plug 'ayu-theme/ayu-vim'
Plug 'Brettm12345/moonlight.vim'
Plug 'fcpg/vim-fahrenheit'
Plug 'Rigellute/shades-of-purple.vim'
Plug 'catppuccin/nvim', {'as': 'catppuccin'}
" Editor extensions
Plug 'neomake/neomake'
Plug 'preservim/nerdtree'
Plug 'zhaocai/timestamp.vim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-tree/nvim-web-devicons'
Plug 'MunifTanjim/nui.nvim'
Plug 'preservim/vim-pencil'
Plug 'nvim-neo-tree/neo-tree.nvim'
"Plug 'zhaocai/timestamp.vim'
Plug 'vim-airline/vim-airline'
Plug 'bling/vim-bufferline'
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-commentary'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'lighttiger2505/deoplete-vim-lsp'
Plug 'machakann/vim-highlightedyank'
Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':UpdateRemotePlugins' }
" Use rainbow parenthesis and automatic closing parens
Plug 'luochen1990/rainbow'
@@ -25,6 +30,9 @@ Plug 'jiangmiao/auto-pairs'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
" Support for various git things
Plug 'airblade/vim-gitgutter'
" Language support for LaTeX
Plug 'vim-latex/vim-latex'
Plug 'rhysd/vim-grammarous'
@@ -34,7 +42,6 @@ Plug 'chikamichi/mediawiki.vim'
" Syntaxhighlighting for .toml files
" Extras for rust
Plug 'cespare/vim-toml'
Plug 'racer-rust/vim-racer'
@@ -46,4 +53,5 @@ Plug 'zchee/deoplete-jedi'
Plug 'davidhalter/jedi-vim'
Plug 'HiPhish/jinja.vim'
call plug#end()

View File

@@ -1,2 +0,0 @@
autocmd VimEnter * EnableTimestamp