@@ -54,13 +54,8 @@ vim.g.have_nerd_font = false
54
54
55
55
-- [[ Setting options ]]
56
56
-- See `:help vim.o`
57
- -- NOTE: You can change these options as you wish!
58
- -- For more options, you can see `:help option-list`
59
57
60
- -- Make line numbers default
61
58
vim .o .number = true
62
- -- You can also add relative line numbers, to help with jumping.
63
- -- Experiment for yourself to see if you like it!
64
59
vim .o .relativenumber = true
65
60
66
61
-- Enable mouse mode, can be useful for resizing splits for example!
@@ -111,18 +106,9 @@ vim.o.splitbelow = true
111
106
vim .o .list = true
112
107
vim .opt .listchars = { tab = ' » ' , trail = ' ·' , nbsp = ' ␣' }
113
108
114
- -- Preview substitutions live, as you type!
115
109
vim .o .inccommand = ' split'
116
-
117
- -- Show which line your cursor is on
118
110
vim .o .cursorline = true
119
-
120
- -- Minimal number of screen lines to keep above and below the cursor.
121
111
vim .o .scrolloff = 10
122
-
123
- -- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
124
- -- instead raise a dialog asking if you wish to save the current file(s)
125
- -- See `:help 'confirm'`
126
112
vim .o .confirm = true
127
113
128
114
-- [[ Basic Keymaps ]]
@@ -160,10 +146,10 @@ vim.keymap.set('i', '<Tab>', function()
160
146
end , { expr = true , noremap = true })
161
147
162
148
-- TIP: Disable arrow keys in normal mode
163
- -- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
164
- -- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
165
- -- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
166
- -- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
149
+ vim .keymap .set (' n' , ' <left>' , ' <cmd>echo "Use h to move!!"<CR>' )
150
+ vim .keymap .set (' n' , ' <right>' , ' <cmd>echo "Use l to move!!"<CR>' )
151
+ vim .keymap .set (' n' , ' <up>' , ' <cmd>echo "Use k to move!!"<CR>' )
152
+ vim .keymap .set (' n' , ' <down>' , ' <cmd>echo "Use j to move!!"<CR>' )
167
153
168
154
-- Keybinds to make split navigation easier.
169
155
-- Use CTRL+<hjkl> to switch between windows
0 commit comments