vim.cmd([[ set nu set smarttab set tabstop=4 set shiftwidth=4 set noexpandtab set autoindent filetype plugin indent on colorscheme vim set notermguicolors set splitbelow splitright " Insert mode hjkl inoremap inoremap inoremap inoremap nnoremap : nnoremap o o nnoremap O O " Some C Macros autocmd Filetype c inoremap im intmain(){return0;} autocmd Filetype c inoremap I #include<> autocmd Filetype c inoremap w while(){}e2li autocmd Filetype c inoremap f for(;;){}e2li " LaTex Macros autocmd Filetype tex inoremap equ \begin{equation}\end{equation} autocmd Filetype tex inoremap b \begin{}\end{}kf{a autocmd Filetype tex inoremap e 0f{lvf}hyj0f{pO ]]) vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 local function bootstrap_pckr() local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim" if not (vim.uv or vim.loop).fs_stat(pckr_path) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/lewis6991/pckr.nvim", pckr_path }) end vim.opt.rtp:prepend(pckr_path) end bootstrap_pckr() require("pckr").add{ { "christoomey/vim-tmux-navigator", cmd = { "TmuxNavigateLeft", "TmuxNavigateDown", "TmuxNavigateUp", "TmuxNavigateRight", "TmuxNavigatePrevious", }, keys = { { "", "TmuxNavigateLeft" }, { "", "TmuxNavigateDown" }, { "", "TmuxNavigateUp" }, { "", "TmuxNavigateRight" }, { "", "TmuxNavigatePrevious" }, }, }, { "windwp/nvim-autopairs", event = "InsertEnter", config = function() require("nvim-autopairs").setup {} end }, { "nvim-tree/nvim-tree.lua", config = function() require("nvim-tree").setup() end }, { "vimwiki/vimwiki" } }