vim select multiple lines and comment

1. Use either NERDCommenter as mentioned, but if that's not available to me I use the visual modes. I go into Visual Line mode, make my selection, oft... To remove lines that contains the string amos, in vim command mode, type the command below and press Enter. Then hit Shift+I and type the text you want to insert. Press V to select the entire line, or v to select from where your cursor is. ( Log Out /  Change ), You are commenting using your Facebook account. For the sake of completeness here's another way: The book shows the reader how to effectively use the shell to accomplish complex tasks with ease. If you are using a common text editor either you have to comment line per line or use the multi-line string (triple quotes) as a multi-line comment. Depending on your Vim configuration, this should comment out the selected line. then vim w... Available both as a command line interface and as a standalone program with a GUI, Vim is a text editor that is a modal version of the vi editor created for Unix in the 1970s; Vim stands for vi improved. This command (:Comment) adds a chosen string to the beginning of any selected lines.command! I want it to fold only multi-line comments. Vim is a great text editor that allows you to work with text files in the terminal easily and comfortably. It is easy if there are only few lines in the file. But if you need to comment out multiple lines, there is an another easy way out. First open the file in vim editor: Then highlight the lines that you want to comment out. To do so, place the cursor at the beginning of a line. Press SHIFT+V to highlight the whole line. Which I thought was weird. Go to the line which you want to start the comment from Press shift+V - this will select the whole line Now press j if you want to select lines down below from the current line other wise press k if you want to select current line + lines above Create .vimrc file in home location and add below code.You can add some more features if required. Vim provides a lot of different use cases for deleting single and multiple lines. In this book, Alvin Alexander -- author of the Scala Cookbook and former teacher of Java and Object-Oriented Programming (OOP) classes -- writes about his own problems in trying to understand FP, and how he finally conquered it. Just use CTRL-V to select a column using a visual block. How To Comment Out Multiple Lines At Once In Vim Editor . Insert mode (Where you can just type like normal text editor. With vim it's easy. Indent commands like >>, << and i_CTRL-T, i_CTRL-D in insert mode indent the entire line. You should see the selected text highlighted. Finally, press the ENTER keyword to execute the command. Change ), You are commenting using your Google account. Learning either vi or vim is required knowledge if you use Linux or Unix, and in either case, reading this book is essential. After reading this book, the choice of editor will be obvious for you too. "Add sparkle and life to your Web pages"--Cover. How to List All Logged-in Users on Your Linux Computer, 5 of the Best Linux Distros for Developers and Programmers. Lets see how we can use that to comment out these two lines. 1. Below are step-by-step instructions to delete a line: Press the Esc key to go to normal mode. This Book Is Perfect For Total beginners with zero programming experience Junior developers who know one or two languages Returning professionals who haven’t written code in years Seasoned professionals looking for a fast, simple, crash ... How to Fix a Touchpad Not Working in Linux, How to Boot to Recovery Mode (Safe Mode) in Ubuntu, Ubuntu Software Center Not Working? To change mode to visual mode, type. Found insideAbout this Book You don't need the full force of Java when you're writing a build script, a simple system utility, or a lightweight web app—but that's where Groovy shines brightest. 4 – Press Shift + i to vim enter in INSERT mode, it will go to the first line. y p y p y p… But there is a better way! The vim edit will show up … How to Turn Vim Into an IDE for R. Warning: No, this is not the R setup to use if you are a beginner.The RStudio IDE is amazing and should probably always be your default tool. Type dd and hit Enter to remove the line. Opening multiple files in vim … Already there were numerous endeavors seen at presenting to Sublime Text’s splendid various determination highlights into Vim. Suppose you do not know the line numbers to comment out. Found inside – Page 146The formatoptions tells Vim that we want to automatically wrap comments but don ' t want code wrapped . The next line : set comments = sr : / * , mb : * ... Is it possible to comment out entire blocks of code with this plugin? Now, all I have to do is to use the down arrow key to select the whole paragraph. :66,70s/^#/. Below are some of the most useful Vim commands for faster navigation. Management of multiple files is tricky; Ability to indent multiple lines is missing; It does have a significant strength though: your fingers can stay on the main keyboard keys to do most editing actions. Found inside – Page iAre you ready to join them? This book helps you use and understand basic SAS software, including SAS® Enterprise Guide®, SAS® Add-In for Microsoft® Office, and SAS® Web Report Studio. Indenting lines of programming code is essential for readability. select the first caracter of your block press Ctrl+V (this is rectangular visual selection mode) type j for each line more you want to be commented type Shift-i (like I for "insert at start") Press d to delete the selected block. 5 – Type # and Press Esc. Using the up and down arrow keys, select all the lines you wish to comment out. Select the first column of the lines you want to comment. i... That's fantastic! Found inside – Page 4Other editors (vim, for example) offer very powerful autocompletion, ... and ends with an asterisk and a forward slash (*/), and can span multiple lines. Posted By: Anonymous. In Visual mode, you can select multiple lines and toggle their status at the same time. You don’t need more than one cursor in vim. GitHub: Visit GitHub to find this great Vim cheat sheet with helpful commands and descriptions. You've decided to leave a comment. This is analogous to the left arrow of your keyboard. In this full updated edition of the popular Linux Bible, Negus and contributing author Christine Bresnahan give you a thorough Linux tutorial, complete with helpful exercises at the end of each chapter. This is the follow up of Mastering Vim: Opening files. Found inside – Page 224Green lines show that she moves back and forward again between steps within ... onlf\'— trldo oft flllnl: Io! accurllo selection Undo In go to quadranl vim ... There is common pattern in line 3 and 5 that is the common word character. "This book introduces you to R, RStudio, and the tidyverse, a collection of R packages designed to work together to make data science fast, fluent, and fun. Suitable for readers with no previous programming experience"-- There is no foldlevel that does what I want. ; Move the cursor to the end of what you want to copy, using h,j,k, or l; Press y to copy it, or d to cut it. I thought it was surprising that : doesn't even seem to open the vim last line mode but when I do: :10 nothing happens. Investigate and solve problems with Nginx-powered websites using a deep understanding of the underlying principles About This Book Solve problems with your Nginx-powered websites before your audience notices anything Peek into the Nginx ... I don't understand what you mean by minimal test case. Although this tutorial shows various ways to comment on multiple lines in Vim editor, it barely scratched the surface of Vim’s capabilities, like turning Vim into a Word processor. To repeat it on multiple lines, you can also use @@ after using @a command once. That's it ! After that you just have to type d in order to remove comment. Use the line numbers to comment the specific lines. This book attempts to capture the engineering wisdom and design philosophy of the UNIX, Linux, and Open Source software development community as it has evolved over the past three decades, and as it is applied today by the most experienced ... As a programmer, I went far too long not knowing how to do this with vim (one of my favorite editors). Vim is a widely used, open-source Unix text editor. ... How to extract multiple bits of information that appear on different lines … Hope you got the gist of how to comment and uncomment code in VIM. 3 – Move the cursor to down until the line that will be commented or Press j key. Indenting multiple lines at once is a feature that any useful code editing software should have. Once it's selected, you can do a search and replace, yank, cut and other actions. go to first line and set the marker with mt. I know Vim is nowhere close to an IDE and I may be having some unreasonable hopes but just a quick question: Remote editing of files possible with Vim? r/vim: For Vim enthusiasts and anyone interested in Vim. Put the cursor on the first line you would like to indent and then type v to enter into visual mode. 4. As you might expect, this mode lets you select the lines between the starting point and your cursor, wrapping the selection across any line breaks encountered. Jump at the end and select first column by pressing: G, E (or adjust manually). Let's have a personal and meaningful conversation. The command to delete a line in Vim is dd. Now to indent multiple lines we can leverage Vim’s visual mode to select more than one line. -range -nargs=1 Comment :execute "'<,'>normal! “Last-line mode” where Vim expects you to enter a command such as to save the document. Opening multiple files. Press CTRL-V to begin select of the column. Vim - EditingInsert text before cursorInsert text at the beginning of lineAppend text after cursor. This action will move cursor next by one position and switch Vim in insert mode.Append text at the end of lineOpen new line below cursorOpen new line above cursorSubstitute text. ...Change text. ...Replace text. ...Join text Most often, vim is started to edit a single file using the following command. To delete a single line in Vim editor, follow the steps below. 1. Select inside of pair characters. Topics new to the sixth edition include multiscreen editing and coverage of fourviclones:vim,elvis,nvi, andvileand their enhancements tovi, such as multi-window editing, GUI interfaces, extended regular expressions, and enhancements for ... A window is noting but a viewport onto a buffer. Vim will repeat the same steps for you on that line! It allows you to search an occurrence in multiple files, select what results you want to replace, and finally replace them. In order to delete lines matching a pattern in a file using vim editor, you can use ex command, g in combination with d command. For example, say we want to comment out lines from 2 to 4. The command to comment out specific words is: In this command, the “keyword” represents the specific words you wish to comment out. Hit like if you are one of them who know how to do comment multiple lines but you forget at the moment;), Now your visual block is enable like this on bottom, Press down arrow key to select the lines which you need to comment, Press shift + # to apply the comment on starting line, Press ESC to comment multiple lines which you selected. Please checkout the snapshot below for details. Use Esc to switch to normal mode in Vim. In this tutorial, you will find the most important Vim commands as well as a downloadable cheat sheet. :g/amos/d. Next, enter the comment symbol for the target file. Change ), SQL QUERY TO FIND LOG SWITCH PER HOUR HISTORY IN ORACLE, ORA-01045: user TEST lacks CREATE SESSION privilege; logon denied, ORA-39166: Object SYS.DEMO_DUP was not found.-ORA-31694: master table “SYS”.”SYS_EXPORT_TABLE_05″ failed to load/unload-ORA-31617: unable to open dump file “/home/oracle/expdp/demo_sales_02.dmp” for write-ORA-19505: failed to identify file “/home/oracle/expdp/demo_sales_02.dmp”-ORA-27037: unable to obtain file status-Linux-x86_64 Error: 2: No such file or directoryAdditional information: 3, ORA-00923: FROM keyword not found where expected, IMPDP PERFORMANCE SPEED UP/OPTIMIZE DATAPUMP ORACLE, RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied. Found insideWith this handbook, you’ll learn how to use: IPython and Jupyter: provide computational environments for data scientists using Python NumPy: includes the ndarray for efficient storage and manipulation of dense data arrays in Python Pandas ... Fill in your details below or click an icon to log in: You are commenting using your WordPress.com account. Sublime text first introduced multiple cursor editing (as far as I know). Another method is to use a command to remove all lines starting with the comment symbol. Found insideVim is a fast and efficient text editor that will make you a faster and more efficient developer. It's available on almost every OS, and if you master the techniques in this book, you'll never need another text editor. In a search, \s finds space or tab, while \_s finds newline or space or … Place the cursor to the beginning of the line. 2.Use the following command and replace [from] with the number of the line where you want the range to start and [to] where you want it to end: : [from], [to]d. For instance, if you wanted to remove lines 4, 5, 6, and 7, you would use the command: :4,7d. We can delete this line completely with the D or dd command. 1) Delete a single line. Markers: When yanking (copying) and pasting in Vim, you’re taking advantage of what Vim calls Registers. Vim is a powerful text editor used in CLI (command line interface). Step 5: To save the changes type :w or :wq to save the file and exit. Vim has cursor which will reside current active location. Archived. For example, here's the keystrokes to change a column. Vim allows you to specify the start and finish line and comment them out. If you are an experienced Vim user, don’t forget to check out these Vim tips and tricks, too. Type # then esc. You can also use Vim visual mode to comment out a block of code. 1 – Put the cursor on the first line that will be commented. This command (:Comment) adds a chosen string to the beginning of any selected lines.command! If you are using a Python IDE (As PyCharm) you can select these lines and use Ctrl + / (or the default "comment" shortcut) to comment them. If you use vim to code then you would be commenting and un-commenting many times.In this post, we would talk about multiple ways of commenting code. Press the ESC key. Each time the length of the line reaches the text width, vim automatically starts a new line including, the comment symbol. Note: you can also use your mouse scroll wheel to select the lines you wish to comment on. Place the cursor on the line you want to begin copping or cutting. Related: 6 of the Best Linux Text Editors. -range -nargs=1 Comment :execute "'<,'>normal! When lines don't wrap ('wrap' off): To the leftmost character of the current line that is on the screen. The visual block mode in vim is used to visually select multiple lines/block of text in vim and perform a certain action on it. ( Log Out /  If you're one of those people and want to make the most of your experience, this book is a practical user's guide to all things Chromebook. Useful to select all lines in comments (or more specifically perl pod) etc. The Bash Guide for Beginners (Second Edition) discusses concepts useful in the daily life of the serious Bash user. BOOM! Use the right techniques and you’ll be even more productive in handling multiple files at the same time. I remember that Sublime-text 2 can do it, so I am wondering if Vim can do it too. So what I'll do is, I'll bring the cursor in the beginning of the first line, and (making sure I am out of Insert mode) type the 'V' (Shift+v) command. vim is a text editor that is upwards compatible to Vi.There are a lot of enhancements above Vi: multi level undo, multiple windows and buffers, syntax highlighting, command line editing, file name completion, a complete help system, visual selection, and others.. :66,70s/^/#. It has Vim commands for how to exit, edit a file, insert a text, insert a file, delete a text, change or replace a text, perform substitutions, copy and move a text, undo/redo/repeat, move around, marks, search, select a text, suspend, and more. V. starting from the current position of the cursor, the place where the cursor passes will be selected, and then Click v to finish. Vim has two modes. Unless you have a newline in your paste buffer (and can thus press p or P), I don't think you'll find a sequence of keystrokes shorter than O or o . Delete Current Line. In blockwise-visual mode (CTRL-V), EasyAlign command aligns only the selected text in the block, instead of the whole lines in the range.Consider the following case where you want to align text around => operators.. my_hash = {:a => 1,:aa => 2,:aaa => 3}. Accepts a count to select multiple … Well, I've followed this so installed vim-X11 plus started vimx instead of vim and now the + buffer is copying to the clipboard (not the * buffer). g/character/ is finding the pattern "character". Python has several ways to comment multiple lines in Python. This will result in the first line being selected and Vim enabling the Visual Line mode. All of the books published to date focus on vi alone not the expanded vim shipping with every major Linux distribution. Popular Vim Commands - Comprehensive Vim Cheat Sheet. Next, use the up and down arrow keys to select the lines you wish to comment out. commenting multiple lines with nerdcommenter? The same procedure can be used for uncommenting the lines in a file. Starting vim. NERD Commenter also understands counts, so you can provide a count n followed by the command to change n lines together. Place the cursor on the line you want to delete. text selection If you want to do the same thing to a collection of lines, like cut, copy, sort, or format, you first need to select the text. Vim will insert a highlight at the beginning of each line to indicate the line is selected. Ostechnix.com DA: 13 PA: 35 MOZ Rank: 48. I have tried using the foldmethod = syntax but then if folds parentheses of functions and almost anything else but not multi-line comments. Found insideThis book will prompt you to make Vim your primary IDE as you will learn to use it for any programming language. With the target lines selected, press Shift + I to enter insert mode. Written in an approachable and jargon-free style designed to help you get the most out of your Linux Shell scripting experience, this book will teach you how to: Create and manage practical scripts, including how to write script utilities ... Common sign up errors are due to: (a) Using prepaid cards. This article will show you how to use Vim’s visual mode, a powerful editing mode that can be used to highlight and edit the text within different files in a slick, convenient fashion. Open the file to be edited using vi/vim using the command vi filename (where filename can be replaced by the name of the file), now enter the command mode by pressing: .In order to comment multiple lines ( i.e. comment multiple lines on vim. # … Next, press the ESC key to enter command mode and enter the command: Press Enter to run the command and comment on the highlighted lines. Go to first character on the first line you want to comment out. Hit Ctrl + q in GVIM or Ctrl + v in VIM, then go down to select first character on the lines to comment out. Then press c, and add the comment character. Uncommenting works the same way, just type a space instead of the comment character. Here’s a cheatsheet to help you get the most out of Vim. I sometimes use the plugin ferret. Vim is one of the most popular and influential command-line text editors. For example, here's the keystrokes to change a column. Comment out multiple lines at once in Vim editor. Press i for insert mode) 2. The example below comments out all the lines containing the keyword True: Vim automatically highlights the target word before executing the command. That is why it is handy to have a helpful reference sheet while mastering them. Pressing dd multiple times will delete multiple lines. There is: paste with "0p instead of just p. But let’s understand what’s happening here. Check out our comment policy here. They can potentially be multiple lines. 1.How to search and replace any character in a multiple lines but not in a range.For example in the previous program I submitted if I wanted to replace the word input in only 5th and the 7th line but not in 6 line. go to the line till which you want range. Use regex to find the lines, which you want to comment out. To comment out a single line in Vim, enter Visual Mode by pressing Ctrl + V. Next, navigate to the line you wish to comment out and press the C key. ... Posted by 7 years ago. With vim it's easy. And he never learned to read. yank is an operator like d and c, which means it works on all motions and text-objects (see the relevant help sections).. That means that yip, y), ygg, yib, y/pattern, yfc etc., all work (and with registers, too)! Oracle only accepts credit card and debit cards (b) Intentionally or unintentionally masking one's location or identity (c) Entering incomplete or inaccurate account details. Normally to indent 1 one line in Vim you would put the cursor anywhere on the line that you’d like to indent and hit > (with < used to unindent). To comment multiple lines go to visual block mode with ctrl + v then select the line with the arrow. Comment it out Linux uses a lot of configuration files, select what results you to! For you press Crtl + v then select the continuous lines more features required. V or v to enter insert mode, where the text width, Vim is a plugin, offers... Apply what you ’ ve learned + v keys common sign up errors are due to: a. Your Google account enduring CSS for large-scale projects the Esc key to remove the '... Unix text editor function doesn ’ t forget to check out these two lines use vim select multiple lines and comment numbers comment. What we did when we need it paste with `` 0p instead of just p. let... More lines ( 5,6 & 7 ) wheel to select multiple lines in Vim is used to visually multiple! Usually commenting multiple lines any terminal geek mouse scroll wheel to select multiple characters, use one combine. Text before cursorInsert text at the beginning of each line to indicate the line line till which you need comment... First open the file you wish to comment out a block of code in Vim to! Accomplish complex tasks with ease syntax but then if folds parentheses of functions and almost else. And replace in multiple files with Vim by learning quick and easy to. Different lines agree to our Privacy Policy and European users agree to the leftmost character of the published. And Programmers, Vim starts with one window, for example, here 's the keystrokes to change a.... Character of the Best Linux Distros for Developers and Programmers be commented or press j key press j key mu. 224Green lines show that she moves back and forward again between steps within... onlf\'— oft... And efficient text editor out entire blocks of code -u NONE -u NONE -u NONE -u NONE -N -i if! This is a fast and efficient text editor that will be obvious for you too is... To extract multiple bits of information that appear on different buffers a command such as to save document... Beginning of each line to indicate the line numbers can leverage Vim s!, email, and then move up or down a few lines in Vim first select the lines help. Possible to comment out ' from the beginning of each line same procedure be. The example below comments out all the selected lines or more specifically pod... Be commented or press j key the region selected, press the Shift key while the. Know about the v command to delete multiple lines using keyboard shortcut is forgotten always when we need it on. Vim can search for text that spans multiple lines, which you want to the... Found insideVim is a powerful text editor questions tagged command-line Vim text-processing or ask your own question Browse... How to use the cursor is method outlined above working CSS authors involved in large projects active... For this is the line is selected by line space to the left side your! Finish line and comment them out lines go to visual block mode method is use! Or cutting press Shift + I to Vim 's seeking behavior of di ' when inside. Line of the current line that is composed of multiple operating modes search text! Word input in all the lines that contains the string amos, in is! 5: to save the file in Vim select multiple lines, press the Shift + I Vim expects to! Have tried using the following command are step-by-step instructions to delete multiple lines Vim... Replace comment symbol with the d or dd command vim select multiple lines and comment way while mastering them a for. Quotes, but it works both ways mode # Join text commenting a block code... Have tried using the up and down arrow key to exit visual line syntax but then if folds parentheses functions! The choice of editor will be commented keys to select and manipulate vim select multiple lines and comment Rank 48. Nerdcommenter set up inside of quotes, but it works both ways, trying to learn Vim I... The whole paragraph guide discusses how to use this command to change a column a! Alternatives to Vim enter in insert mode indent the entire line column vim select multiple lines and comment pressing: G E... Line including, the comment character edit a single line in visual mode - text. Till which you need to comment out the selected line 2 can do it Ltd. all rights reserved appear. Press d to remove the line insideVim is a widely used, open-source text..., isn ’ t need more than one line users know about the v command to a. I have nerdcommenter set up words forward of functions and almost anything but! The h command to navigate to the outcast realms of Vim words forward only the '. I_Ctrl-T, i_CTRL-D in insert mode, where the kernel resides delete key d. here is how you not. New posts by email up, you can load the kernel just by its., the choice of editor will be commented or press j key insert texts multiple. For working CSS authors involved in large projects right arrow key to select the continuous lines down a few.! Indenting lines of text editor tries to help you get the most popular and influential command-line text.! For any terminal geek csh -- the standard shell on most Unix systems -- interactively selected, press +. Downloadable cheat sheet unfortunately this function doesn ’ t work anymore vim select multiple lines and comment r/vim: for commenting::66,70s/^/.... To launch Vim command mode ) 2w - to move the cursor at the same steps for you that! This manual is available online for free at gnu.org sparkle and life to Web... The start and finish vim select multiple lines and comment and comment them out most popular and command-line. D ' twice in quick succession start from, and finally replace them code in Vim command mode ) -! We are using a visual block selection the command to delete multiple lines at is! 5,6 & 7 ) a fast and efficient text editor in Ubuntu 20.04 that is the line selected! Else but not multi-line comments multiple cursor editing ( as far as I know.... For you too below code.You can add some more features if required from `` 0 when... Third word forward while mastering them to exit the visual mode to the! '' visual and press the ctrl + v to select multiple files with Vim ferret to. Chosen string to the data transfer Policy and press delete key d. here is how you do it visual mode. Occur with Vim by learning quick and easy steps to comment out do it, so can. With less typing follow up of mastering Vim: opening files realms of Vim where you would like to your... Use @ @ after using @ a command once, yank, cut and... Want range and this sequel to the end and select first column by pressing CTRL-V. 2 them... Blockwise visual mode allows you to enter visual line mode, by pressing: G, E or! Provides review questions in each chapter to help Vim shipping with every major Linux distribution the type! Press the Esc key to exit the visual mode allows you to search occurrence! Re taking advantage of what we did when we need to insert the pound ( # ) symbol to removed. You happen to belong to the line number 1,4,7,8 etc more features if required mode # wish comment! On one buffer, or v to select more than one line press c, and the of. Is set for shell scripting, Vim starts when I want to uncomment lines starting with the comment symbol the. Out a block of code in VBA out entire blocks of code popular and influential command-line text editors of 6. Presents a guide to RTF, the comment block used in CLI ( command line interface ) more developer..., don ’ t forget to check out these two lines experienced Vim user, don ’ need! Tries to help you apply what you ’ ll use many times in your career markup that! Vim as we type commenting::66,70s/^/ # 2021 Uqnic Network Pte Ltd. all rights reserved lines/block of in!: Vim for example open /etc/passwd file, enter: ' <, ' normal... Line 6 as shown below will delete the entire line rights reserved files on mac ; to... Piece to the beginning how to comment the lines 3 and 5 in our above! With less typing blocks of code with this plugin will … Vim provides different keyboard command... Out / change ), you will find the lines you wish to of... You just have to do is to add # at the bottom of the out! A basic one-liner based on the line is selected d. here is how you do not know line... The pattern 5,7s/input/output/g would replace the word input in all the lines that you selected would replace the word in. You would like to show you how to comment the lines you want to start commenting.... Insideturn Vim into a full-blown development environment using Vim 8 's new and. That you selected have a helpful reference sheet while mastering them Commenter also counts! The line you want to uncomment go to the line you want to comment might be for you easy... A basic one-liner based on the screen enduring CSS for large-scale projects use for! Even Mike Tyson could do it example, to highlight multiple lines with multiple patterns you. None -N -i NONE if that is why it is handy to have a helpful reference sheet while them! Website in this case, you will find the most useful Vim commands for faster navigation,! To a deletion i_CTRL-T, i_CTRL-D in insert mode 's nano and joe for this is a way!

Nyu Maternal Fetal Medicine, Non Consecutive Numbers Examples, Oracle Check If Record Exists, Dubai Media Incorporated Hq, Werner Paddle Blade Replacement, 2021 Mazda 3 Turbo Tune, Diploma In Electronics Salary, What Happened To Weta Uk On Fios,

ใส่ความเห็น

อีเมลของคุณจะไม่แสดงให้คนอื่นเห็น ช่องที่ต้องการถูกทำเครื่องหมาย *